package com.xiaoyao.novel.util;

import java.util.UUID;

/**
 * ID 生成器
 * 
 * @author 旷明爱
 * @date Dec 4, 2012 4:30:36 PM
 */
public class IDGenerator {
	/**
	 * 生成 32 位随机字符串
	 * 
	 * @return
	 */
	public static String getGneratorId() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}

	public static void main(String[] args) {
		String id = getGneratorId();
		System.out.println(id + ":" + id.length());
	}
}
